<?php
require_once('ri/converter/ConverterFactory.php');

$c= ConverterFactory::forName('Number')->setDefault(123.45);
echo($c->getAsDatatype(null)); // output: 123.45
?>